using SqlSugar;
using System;

namespace B.S.XZYData.Domain.LJC
{
    /// <summary>
    /// 报工记录
    /// </summary>
    [SugarTable("wo_report")]
    public class WorkOrderReportModel
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 工单工序 ID
        /// </summary>
        [SugarColumn(ColumnName = "wop_id", IsNullable = false)]
        public int WorkOrderProcessId { get; set; }

        /// <summary>
        /// 报工时间
        /// </summary>
        [SugarColumn(ColumnName = "rec_tm", IsNullable = false)]
        public DateTime RecordTime { get; set; }

        /// <summary>
        /// 良品数量
        /// </summary>
        [SugarColumn(ColumnName = "good", IsNullable = false)]
        public int GoodQuantity { get; set; }

        /// <summary>
        /// 不良品数量
        /// </summary>
        [SugarColumn(ColumnName = "bad", IsNullable = false)]
        public int BadQuantity { get; set; }

        /// <summary>
        /// 时长(分钟)
        /// </summary>
        [SugarColumn(ColumnName = "dur_min", IsNullable = false)]
        public int DurationMinutes { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "remk", Length = 255)]
        public string? Remark { get; set; }

        /// <summary>
        /// 报工人 ID
        /// </summary>
        [SugarColumn(ColumnName = "usr_id", IsNullable = false)]
        public int UserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "c_tm")]
        public DateTime? CreateTime { get; set; }
    }
} 